package com.company.责任链模式2;

public class DepLeader extends Handler{
    public DepLeader(Handler next) {
        super(next);
    }

    @Override
    public void handle(Request request) {
        System.out.println("部门领导同意");
        if (request.getDays()>3){
            next.handle(request);
        }
    }
}
